home *** CD-ROM | disk | FTP | other *** search
/ Software USA 4 #11 / Software USA Volume 4.11.iso / mac / Educational / mac06 / usr / include / coff / filehdr.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-10-29  |  1.1 KB  |  35 lines  |  [TEXT/SPM ]

  1. /* mac06©1997 by HNS/DSITRI hns@computer.org
  2. ** filehdr.h
  3. */
  4.  
  5. #ifdef __SC__    /* Symantec C++ for PowerPC 8.0 */
  6. #pragma options align=mac68k
  7. #endif
  8.  
  9. struct filehdr {
  10.         unsigned short    f_magic;        /* magic number */
  11.         unsigned short    f_nscns;        /* # of sections */
  12.         unsigned long     f_timdat;       /* time stamp */
  13.         unsigned long        f_symptr;       /* symbol table offset */
  14.         long                f_nsyms;        /* # of symbols */
  15.         unsigned short    f_opthdr;       /* size of system header */
  16.         unsigned short    f_flags;        /* flags, see below */
  17. };
  18.  
  19. #ifdef __SC__    /* Symantec C++ for PowerPC 8.0 */
  20. #pragma options align=reset
  21. #endif
  22.  
  23. enum filehdr_flags {
  24.         F_RELFLG = 0x01,                /* relocs have been stripped */
  25.         F_EXEC = 0x02,                  /* executable file (or shlib) */
  26.         F_LNNO = 0x04,                  /* line numbers have been stripped */
  27.         F_LSYMS = 0x08                  /* symbols have been stripped */
  28. };
  29.  
  30. #define    FILHDR    struct filehdr
  31. #define FILHSZ    sizeof(FILHDR)
  32.  
  33. #define F_MAGIC    (0737)    /* procesor model dependent */
  34.  
  35. /* EOF */